package com.zxp.mylib.test.type.aaaa.aa

import com.custom.base.manager.SDActivityManager
import com.custom.base.mvp.BasePresenterImpl

/**
 * 作者：121
 * 时间：2022-06-10
 * 描述：212
 */

class AaPresenter : BasePresenterImpl<AaContract.View>(), AaContract.Presenter{
    private var list = arrayListOf<AaModel>()
    private var adapter:AaAdapter? = null

    override fun init() {
        mView?.apply {
            for(i in 1..10){
                list.add(AaModel())
            }
            adapter = AaAdapter(list, SDActivityManager.instance.lastActivity)
            listView.adapter = adapter
        }
    }
}